package com.example.mylearn.proxy.learn.once.dynamicProxy.jdkProxy;

import java.lang.reflect.Proxy;

public class CallKafkaFactory {
    public static Object getProxy(Object obj) {
        return Proxy.newProxyInstance(obj.getClass().getClassLoader(), obj.getClass().getInterfaces(), new CallKafkaHandler(obj));
    }
}
